81199d
@@ -525,24 +525,6 @@
private void createDefaultDB() throws MetaException {
       }
     }
 
-    private boolean areWeAllowedToCreate() {
-
-      Class<?> authCls;
-      Class<?> authIface;
-      try {
-        authCls = hiveConf.getClassByName(hiveConf.getVar(ConfVars.HIVE_AUTHORIZATION_MANAGER));
-        authIface = Class.forName("org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAuthorizerFactory");
-      } catch (ClassNotFoundException e) {
-        LOG.debug("No auth manager specified", e);
-        return false;
-      }
-      if(!authIface.isAssignableFrom(authCls)){
-        LOG.warn("Configured auth manager "+authCls.getName()+" doesn't implement "+ ConfVars.HIVE_AUTHENTICATOR_MANAGER);
-        return false;
-      }
-
-      return true;
-    }
 
     private void createDefaultRoles() throws MetaException {
 
@@ -551,10 +533,6 @@
private void createDefaultRoles() throws MetaException {
         return;
       }
 
-      if(!areWeAllowedToCreate()) {
-        return;
-      }
-
       RawStore ms = getMS();
       try {
         ms.addRole(ADMIN, ADMIN);
@@ -598,9 +576,6 @@
private void addAdminUsers() throws MetaException {
         LOG.debug("Admin users already added.");
         return;
       }
-      if(!areWeAllowedToCreate()) {
-        return;
-      }
       // now add pre-configured users to admin role
       String userStr = HiveConf.getVar(hiveConf,ConfVars.USERS_IN_ADMIN_ROLE,"").trim();
       if (userStr.isEmpty()) {
